<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
  
<html>
<head>
<jsp:include page="templates/head.jsp" />
  <script type="text/javascript">
	$(document).ready(function() {
		
		$('#AuthorTabs').tabs();
		$('#AuthorImportBtn').button({ icons: {primary: 'ui-icon-circle-plus'} }).click(function() {});
		$('#ProgressBtn').button({ icons: {primary: 'ui-icon-circle-plus'} }).click(function() {
    	  new ProgressDialog('import').init();
		});
    });
  </script>
</head>
<body>
  <jsp:include page="templates/header.jsp" />
  <div id="ContentBox">
    <div id="AuthorTabs">
      <ul>
        <li><a href="#AuthorListTab">Lista</a></li>
        <li><a href="#AuthorActionTab">Akcje</a></li>
      </ul>
      <div id="AuthorListTab">
        <jsp:include page="templates/authorsList.jsp" />        
      </div>
      <div id="AuthorActionTab">
        <jsp:include page="templates/authorSaveForm.jsp" />
        <div class="separator"></div>
        <c:forEach items="${importers}" var="importer">
          <span>
            <input type="radio" name="ImportRadio" value="${importer.id}" />
            <c:out value="${importer.description} " />
            <span class="grayed">
              <c:out value="[${importer.id}]" />
            </span>
            <br />
          </span>
        </c:forEach>
        <br />
        <button id="AuthorImportBtn">Importuj autorów</button>
        <button id="ProgressBtn">Progress test</button>
      </div>
    </div>
  </div>
  <jsp:include page="templates/footer.jsp" />
</body>
</html>
